﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using BrightIdeasSoftware;
using System.Collections;

namespace ConfigurationManager
{
    public partial class Form1 : Form
    {
        ArrayList columns = new ArrayList();

        public Form1()
        {
            InitializeComponent();


            UtentiController uc = new UtentiController();

            //BrightIdeasSoftware.Generator.GenerateColumns(typeof(Utente));

            this.objectListView1.SetObjects(uc.GetUtenti());
        }

        private void button1_Click(object sender, EventArgs e)
        {
            byte[] state = this.objectListView1.res.SaveState();

            foreach (OLVColumn o in this.objectListView1.AllColumns)
            {
                if (!o.IsVisible)
                {
                    columns.Add(o.AspectName);
                }
            }
        }
    }
}
